import java.io.File;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: LianBao
 * Date: 2024-08-14
 * Time: 21:28
 */
public class demo5 {
    public static void main(String[] args) {
        File f1 = new File("./abc");
        File f2 = new File("./abc/def/ghi");
//        boolean ok = f1.mkdir();//创建目录,只能创建一个
        boolean ok = f2.mkdirs();//创建目录,可以创建多个子目录

        System.out.println(ok);
    }
}
